package njust.tables.order;

import java.util.Date;

/**
 * TbOrder entity. @author MyEclipse Persistence Tools
 */

public class TbOrder implements java.io.Serializable {

	// Fields

	private Integer id;
	private String BId;
	private String userId;
	private Date orderDate;
	private Integer orderTime;
	private String reason;
	private String college;
	private Integer approved;
	private Integer state;
	private String backReason;

	// Constructors

	/** default constructor */
	public TbOrder() {
	}

	/** minimal constructor */
	public TbOrder(String BId, String userId, Date orderDate,
			Integer orderTime, String college, Integer approved, Integer state) {
		this.BId = BId;
		this.userId = userId;
		this.orderDate = orderDate;
		this.orderTime = orderTime;
		this.college = college;
		this.approved = approved;
		this.state = state;
	}

	/** full constructor */
	public TbOrder(String BId, String userId, Date orderDate,
			Integer orderTime, String reason, String college, Integer approved,
			Integer state, String backReason) {
		this.BId = BId;
		this.userId = userId;
		this.orderDate = orderDate;
		this.orderTime = orderTime;
		this.reason = reason;
		this.college = college;
		this.approved = approved;
		this.state = state;
		this.backReason = backReason;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getBId() {
		return this.BId;
	}

	public void setBId(String BId) {
		this.BId = BId;
	}

	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Date getOrderDate() {
		return this.orderDate;
	}

	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}

	public Integer getOrderTime() {
		return this.orderTime;
	}

	public void setOrderTime(Integer orderTime) {
		this.orderTime = orderTime;
	}

	public String getReason() {
		return this.reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getCollege() {
		return this.college;
	}

	public void setCollege(String college) {
		this.college = college;
	}

	public Integer getApproved() {
		return this.approved;
	}

	public void setApproved(Integer approved) {
		this.approved = approved;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getBackReason() {
		return this.backReason;
	}

	public void setBackReason(String backReason) {
		this.backReason = backReason;
	}

}